package com.chatdating.service;

import com.chatdating.entity.User;
import com.chatdating.entity.dto.RegisterDto;
import com.chatdating.entity.vo.UserByNameVo;
import com.github.pagehelper.PageInfo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;


public interface UserService {

    String getNameById(Integer authorId);

    //根据用户名查询注册信息是否重复
    User findByNmme(String name);
    //注册时候添加用户信息
    Integer save(User user);
    //用户更改自己基本信息
    Integer updateUserInfo(User user, MultipartFile head);

    //回显认证中的用户信息
    PageInfo<User> authenticatingUser(Integer pageNum, Integer pageSize , String username);

    //通过审核
    void passAuthentication(String uname);
    //拒绝审核
    void failAuthentication(String uname);

    UserByNameVo getUserInfo(String username);

    void updateUser(UserByNameVo user);

    Integer getAuthorIdByUsername(String username);

    void deleteUser(String username);
}
